package com.kuaifu.autofare.service.template.impl;

import com.kuaifu.autofare.bean.model.WechatTemplateMsg;
import com.kuaifu.autofare.service.template.TemplateMessageAction;
import org.springframework.stereotype.Component;

import java.util.TreeMap;

/**
 * Created by mocaijin on 21/12/2017.
 */
@Component(value = "unPayOrderAction")
public class UnPayOrderAction implements TemplateMessageAction {
    @Override
    public WechatTemplateMsg processMessage(Integer userId) throws Exception {

        WechatTemplateMsg wechatTemplateMsg = new WechatTemplateMsg();
        TreeMap<String, TreeMap<String, String>> params = new TreeMap();
        params.put("first", WechatTemplateMsg.item("First.", "#000000"));
        params.put("orderMoneySum", WechatTemplateMsg.item("300000", "#000000"));
        params.put("orderProductName", WechatTemplateMsg.item("OrderProductName", "#000000"));
        params.put("Remark", WechatTemplateMsg.item("Remark", "#000000"));

        wechatTemplateMsg.setData(params);

        return wechatTemplateMsg;
    }
}
